AdjustMenus
TheAdjustMenus
method should prepare this part's menus for display.
void AdjustMenus (in ODFrame frame);
frame
- A reference to a display frame whose menus should be displayed.
DISCUSSION
OpenDoc calls this method when this part has the menu focus or is the root part and there is a mouse-down event in the menu bar.Your part's
AdjustMenus
method should perform any actions necessary to enable and disable menu items as appropriate to its current state. Your part'sAdjustMenus
method can use theODMenuBar
method to change the appearance of your menu items, or it can make platform-specific calls to directly enable, disable, mark, or change the text of your menu items.OVERRIDING
When you subclassODPart
, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.EXCEPTIONS
kODErrInvalidFrame
- The specified frame is not a display frame of this part.
SEE ALSO
"The AdjustMenus Method" on page 85 in OpenDoc Cookbook
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Enabling Menus and Commands" on page 244 in OpenDoc Programmer's Guide.
"Acquiring and Relinquishing the Clipboard Focus" on page 352 in OpenDoc Programmer's Guide.
"Selection Info" on page 252 in OpenDoc Programmer's Guide.
"Editor Preferences" on page 255 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help